package com.library.BkType.service.impl;

import com.library.BkType.mapper.BkTypeMapper;
import com.library.BkType.model.BkType;
import com.library.BkType.model.BkTypeExample;
import com.library.BkType.service.BkTypeService;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class BkTypeServiceImpl implements BkTypeService {
    
    private BkTypeMapper bkTypeMapper;

    //通过构造函数注入mapper
    @Autowired
    public BkTypeServiceImpl(BkTypeMapper bkTypeMapper) {
        this.bkTypeMapper = bkTypeMapper;
    }

    public long countByExample(BkTypeExample example) {
        return bkTypeMapper.countByExample(example);
    }

    public int deleteByExample(BkTypeExample example) {
        return bkTypeMapper.deleteByExample(example);
    }

    public int deleteByPrimaryKey(Integer id) {
        return bkTypeMapper.deleteByPrimaryKey(id);
    }

    public int insert(BkType record) {
        return bkTypeMapper.insert(record);
    }

    public int insertSelective(BkType record) {
        return bkTypeMapper.insertSelective(record);
    }

    public List<BkType> selectByExample(BkTypeExample example) {
        return bkTypeMapper.selectByExample(example);
    }

    public BkType selectByPrimaryKey(Integer id) {
        return bkTypeMapper.selectByPrimaryKey(id);
    }

    public int updateByExampleSelective(@Param("record") BkType record, @Param("example") BkTypeExample example) {
        return bkTypeMapper.updateByExampleSelective(record, example);
    }

    public int updateByExample(@Param("record") BkType record, @Param("example") BkTypeExample example) {
        return bkTypeMapper.updateByExample(record, example);
    }

    public int updateByPrimaryKeySelective(BkType record) {
        return bkTypeMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(BkType record) {
        return bkTypeMapper.updateByPrimaryKey(record);
    }
}